﻿#include "CBaiduAIIO.h"

int main(int argc, char *argv[])
{
	CBaiduAIIO cAI;
	while (1)
	{
		std::string sAsk,sResult;
		std::cout << "请输入问题:" << std::endl << "  ";
		std::cin >> sAsk;
		if (0 == sAsk.compare("q"))
			break;
		cAI.Ask(sAsk, sResult);
		std::cout << "回复:" << std::endl << "  ";
		std::cout << sResult << std::endl;
	}
	
	return 0;
}
